alphabet rangoli hackerrank python solution